package com.juyu.miliao.api.domain;

import com.fasterxml.jackson.annotation.JsonView;
import com.juyu.miliao.api.util.JacksonView;
import com.juyu.miliao.api.validator.UserPhotoCheck;

import javax.validation.constraints.Min;
/**
 * 用户照片墙、私照
 * @author wbf
 *
 */
public class UserPhoto {
	/** 用户id*/
	@Min(value = 1, groups = {UserPhotoCheck.class})
	@JsonView(JacksonView.UserPhoto.class)
	private long userId;
	/** 图片地址*/
	@JsonView(JacksonView.UserPhoto.class)
	private String picUrl;
	
	/** 是否购买：1是 0不是*/
	@JsonView(JacksonView.PrivatePhoto.class)
	private int isBuy;
	/**私照id*/
	@JsonView(JacksonView.UserPhoto.class)
	private int privateId;
	/**
	 * 照片属性 1:免费 2付费 （默认为2）
	 */
	@JsonView(JacksonView.PrivatePhoto.class)
	private int picType;
	/**
	 * 照片购买次数
	 */
	@JsonView(JacksonView.PrivatePhoto.class)
	private long picBuyNum;
	/**
	 * 照片审核状态：1:审核通过 2：审核中 3:审核通过
	 */
	@JsonView(JacksonView.PrivatePhoto.class)
	private int picState;

	public long getPicBuyNum() {
		return picBuyNum;
	}

	public void setPicBuyNum(long picBuyNum) {
		this.picBuyNum = picBuyNum;
	}

	public int getPicState() {
		return picState;
	}

	public void setPicState(int picState) {
		this.picState = picState;
	}

	public int getPicType() {
		return picType;
	}

	public void setPicType(int picType) {
		this.picType = picType;
	}

	public int getPrivateId() {
		return privateId;
	}
	public void setPrivateId(int privateId) {
		this.privateId = privateId;
	}
	public int getIsBuy() {
		return isBuy;
	}
	public void setIsBuy(int isBuy) {
		this.isBuy = isBuy;
	}
	public long getUserId() {
		return userId;
	}
	public void setUserId(long userId) {
		this.userId = userId;
	}
	public String getPicUrl() {
		return picUrl;
	}
	public void setPicUrl(String picUrl) {
		this.picUrl = picUrl;
	}
}
